﻿using LuShanTea.Service.Entities;
using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LuShanTea.Service.ModelConfig
{
   public class LogConfig:EntityTypeConfiguration<Log>
    {
        public LogConfig()
        {   
            this.ToTable("T_Logs");
            this.Property(e => e.Describle).IsRequired().HasMaxLength(256);
            this.HasRequired(e => e.AdminUser).WithMany().HasForeignKey(e => e.AdminUserId).WillCascadeOnDelete(false);
        }
    }
}
